<?php 
header("content-type:text/html;charset=utf8");
//连选库
$db=new PDO("mysql:host=127.0.0.1;dbname=bj07c;charset=utf8","root","root");
$sql="select * from class";
$res=$db->query($sql)->fetchAll(PDO::FETCH_ASSOC);
// print_r($res);die;
if(empty($res))
{
 include("shows.html");
}
else
{
  include("show.html");
}
 ?>

